PreferencesImpl

public final class PreferencesImpl implements Preferences

This class implements the Preferences interface, defining its properties and method: the last downloaded resumeToken, the dateLastFetch executed, the validationRulesJson received, and the clear method.

Constructors

PreferencesImpl
Link copied to clipboard
PreferencesImpl PreferencesImpl(Context context)

Functions

clear
Link copied to clipboard
Unit clear()
This method clears all values from the Shared Preferences file.
clearDrlPrefs
Link copied to clipboard
Unit clearDrlPrefs()
getAuthorizedToDownload
Link copied to clipboard
Long getAuthorizedToDownload()
getAuthToResume
Link copied to clipboard
Long getAuthToResume()
getChunk
Link copied to clipboard
Long getChunk()
getCurrentChunk
Link copied to clipboard
Long getCurrentChunk()
getCurrentVersion
Link copied to clipboard
Long getCurrentVersion()
getDateLastFetch
Link copied to clipboard
Long getDateLastFetch()
getDrlDateLastFetch
Link copied to clipboard
Long getDrlDateLastFetch()
getFromVersion
Link copied to clipboard
Long getFromVersion()
getHasScanModeBeenChosen
Link copied to clipboard
Boolean getHasScanModeBeenChosen()
getIsDrlSyncActive
Link copied to clipboard
Boolean getIsDrlSyncActive()
getIsFrontCameraActive
Link copied to clipboard
Boolean getIsFrontCameraActive()
getIsSizeOverThreshold
Link copied to clipboard
Boolean getIsSizeOverThreshold()
getIsTotemModeActive
Link copied to clipboard
Boolean getIsTotemModeActive()
getMaxRetryNumber
Link copied to clipboard
Integer getMaxRetryNumber()
getPreferences
Link copied to clipboard
final Lazy<SharedPreferencesgetPreferences()
getRequestedVersion
Link copied to clipboard
Long getRequestedVersion()
getResumeToken
Link copied to clipboard
Long getResumeToken()
getScanMode
Link copied to clipboard
String getScanMode()
getShouldInitDownload
Link copied to clipboard
Boolean getShouldInitDownload()
getSizeSingleChunkInByte
Link copied to clipboard
Long getSizeSingleChunkInByte()
getTotalChunk
Link copied to clipboard
Long getTotalChunk()
getTotalNumberUCVI
Link copied to clipboard
Long getTotalNumberUCVI()
getTotalSizeInByte
Link copied to clipboard
Long getTotalSizeInByte()
getValidationRulesJson
Link copied to clipboard
String getValidationRulesJson()
setAuthorizedToDownload
Link copied to clipboard
Unit setAuthorizedToDownload(Long authorizedToDownload)
setAuthToResume
Link copied to clipboard
Unit setAuthToResume(Long authToResume)
setChunk
Link copied to clipboard
Unit setChunk(Long chunk)
setCurrentChunk
Link copied to clipboard
Unit setCurrentChunk(Long currentChunk)
setCurrentVersion
Link copied to clipboard
Unit setCurrentVersion(Long currentVersion)
setDateLastFetch
Link copied to clipboard
Unit setDateLastFetch(Long dateLastFetch)
setDrlDateLastFetch
Link copied to clipboard
Unit setDrlDateLastFetch(Long drlDateLastFetch)
setFromVersion
Link copied to clipboard
Unit setFromVersion(Long fromVersion)
setHasScanModeBeenChosen
Link copied to clipboard
Unit setHasScanModeBeenChosen(Boolean hasScanModeBeenChosen)
setIsDrlSyncActive
Link copied to clipboard
Unit setIsDrlSyncActive(Boolean isDrlSyncActive)
setIsFrontCameraActive
Link copied to clipboard
Unit setIsFrontCameraActive(Boolean isFrontCameraActive)
setIsSizeOverThreshold
Link copied to clipboard
Unit setIsSizeOverThreshold(Boolean isSizeOverThreshold)
setIsTotemModeActive
Link copied to clipboard
Unit setIsTotemModeActive(Boolean isTotemModeActive)
setMaxRetryNumber
Link copied to clipboard
Unit setMaxRetryNumber(Integer maxRetryNumber)
setPreferences
Link copied to clipboard
final Unit setPreferences(Lazy<SharedPreferences> preferences)
setRequestedVersion
Link copied to clipboard
Unit setRequestedVersion(Long requestedVersion)
setResumeToken
Link copied to clipboard
Unit setResumeToken(Long resumeToken)
setScanMode
Link copied to clipboard
Unit setScanMode(String scanMode)
setShouldInitDownload
Link copied to clipboard
Unit setShouldInitDownload(Boolean shouldInitDownload)
setSizeSingleChunkInByte
Link copied to clipboard
Unit setSizeSingleChunkInByte(Long sizeSingleChunkInByte)
setTotalChunk
Link copied to clipboard
Unit setTotalChunk(Long totalChunk)
setTotalNumberUCVI
Link copied to clipboard
Unit setTotalNumberUCVI(Long totalNumberUCVI)
setTotalSizeInByte
Link copied to clipboard
Unit setTotalSizeInByte(Long totalSizeInByte)
setValidationRulesJson
Link copied to clipboard
Unit setValidationRulesJson(String validationRulesJson)

Properties

authorizedToDownload
Link copied to clipboard
private Long authorizedToDownload
authToResume
Link copied to clipboard
private Long authToResume
chunk
Link copied to clipboard
private Long chunk
currentChunk
Link copied to clipboard
private Long currentChunk
currentVersion
Link copied to clipboard
private Long currentVersion
dateLastFetch
Link copied to clipboard
private Long dateLastFetch
drlDateLastFetch
Link copied to clipboard
private Long drlDateLastFetch
fromVersion
Link copied to clipboard
private Long fromVersion
hasScanModeBeenChosen
Link copied to clipboard
private Boolean hasScanModeBeenChosen
isDrlSyncActive
Link copied to clipboard
private Boolean isDrlSyncActive
isFrontCameraActive
Link copied to clipboard
private Boolean isFrontCameraActive
isSizeOverThreshold
Link copied to clipboard
private Boolean isSizeOverThreshold
isTotemModeActive
Link copied to clipboard
private Boolean isTotemModeActive
maxRetryNumber
Link copied to clipboard
private Integer maxRetryNumber
preferences
Link copied to clipboard
private Lazy<SharedPreferencespreferences
requestedVersion
Link copied to clipboard
private Long requestedVersion
resumeToken
Link copied to clipboard
private Long resumeToken
scanMode
Link copied to clipboard
private String scanMode
shouldInitDownload
Link copied to clipboard
private Boolean shouldInitDownload
sizeSingleChunkInByte
Link copied to clipboard
private Long sizeSingleChunkInByte
totalChunk
Link copied to clipboard
private Long totalChunk
totalNumberUCVI
Link copied to clipboard
private Long totalNumberUCVI
totalSizeInByte
Link copied to clipboard
private Long totalSizeInByte
validationRulesJson
Link copied to clipboard
private String validationRulesJson